package com.zmzncs.lmtc.module.promotion.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zmzncs.lmtc.module.promotion.pojo.month_rule.MonthRule;
import com.zmzncs.lmtc.module.promotion.pojo.month_rule.MonthRuleDTO;
import com.zmzncs.lmtc.module.promotion.pojo.month_rule_fee_scale.MonthRuleFeeScaleDTO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 任建波
 * @since 2020-08-12
 */
@Repository
public interface MonthRuleMapper extends BaseMapper<MonthRule> {

    /**根据id获取普通月租规则*/
    MonthRuleDTO getMonthRuleById(Integer id);
    /**获取月租规则*/
    IPage<MonthRuleDTO> getMonthRuleParkList(Page page, @Param("keyword") String keyword);
    /**获取停车场的月租收费标准*/
    MonthRuleFeeScaleDTO getParkMonthRuleFeeScaleByMonthRentType(@Param("parkId") Long parkId, @Param("monthRentType") Integer monthRentType);

}
